<?php
/* Smarty version 4.0.0-rc.0, created on 2021-11-04 13:47:34
  from 'D:\phpstudy_pro\WWW\templates\1-demo.html' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.0.0-rc.0',
  'unifunc' => 'content_618373f6c2a2c3_81232779',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'b8435f7907bd733c56d724c823b3d80817cf8a54' => 
    array (
      0 => 'D:\\phpstudy_pro\\WWW\\templates\\1-demo.html',
      1 => 1636004852,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_618373f6c2a2c3_81232779 (Smarty_Internal_Template $_smarty_tpl) {
?><!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>smarty站点</title>
	<?php
$_smarty_tpl->smarty->ext->configLoad->_loadConfigFile($_smarty_tpl, 'smarty.conf', 'spring', 0);
?>

	<style>
	body{
		color:<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'color');?>
;
		font-size:<?php echo $_smarty_tpl->smarty->ext->configload->_getConfigVariable($_smarty_tpl, 'size');?>

	}
	</style>
</head>
<body>
	姓名：<?php echo $_smarty_tpl->tpl_vars['name']->value;?>
<br>
	<?php $_smarty_tpl->_assignInScope('age', 20);?>
	年龄：<?php echo $_smarty_tpl->tpl_vars['age']->value;?>
<br>
	<?php $_smarty_tpl->_assignInScope('add', '北京');?>
	地址：<?php echo $_smarty_tpl->tpl_vars['add']->value;?>

	get:<?php echo $_GET['name'];?>

	request:<?php echo $_REQUEST['name'];?>

	常量：<?php echo (defined('name') ? constant('name') : null);?>
<br>
	cookie的值:<?php echo $_SESSION['name'];?>
<br>
	时间戳:<?php echo time();?>
<br>
	版本号:<?php echo Smarty::SMARTY_VERSION;?>
<br>
	根目录:<?php echo $_SERVER['DOCUMENT_ROOT'];?>
<br>
	左界定:<?php echo $_smarty_tpl->smarty->left_delimiter;?>
<br>
	右界定:<?php echo $_smarty_tpl->smarty->right_delimiter;?>
<br>
	
	<hr>
	<?php if ($_GET['score'] >= 90) {?>
	A
	<?php } elseif ($_GET['score'] >= 80) {?>
	B
	<?php } else { ?>
	C
	<?php }?>
	<hr>
	<?php if (!(1 & $_GET['score'])) {?>
	是偶数
	<?php } elseif ((1 & $_GET['score'])) {?>
	是奇数
	<?php }?>
</body>
</html><?php }
}
